// 能源统计页面模拟数据

// 时间轴数据（24小时）
const timePoints = [
  "00:00",
  "02:00",
  "04:00",
  "06:00",
  "08:00",
  "10:00",
  "12:00",
  "14:00",
  "16:00",
  "18:00",
  "20:00",
  "22:00",
  "24:00"
];

// 太阳能数据
export const solarData = {
  totalPower: "8.21",
  chartData: {
    xAxis: ["02", "06", "08", "10", "12", "14", "16", "18", "20", "22", "24"],
    yAxis: [1.2, 0, 0.5, 0.3, 1.2, 2.0, 3.0, 2.6, 2.3, 1.8, 2.8]
  },
  destinationData: [
    {
      name: "To Battery",
      value: 12.33,
      percentage: "18%",
      color: "#3498db" // 蓝色
    },
    {
      name: "To Grid",
      value: 12.33,
      percentage: "18%",
      color: "#9ca3af" // 灰色
    },
    {
      name: "To Home",
      value: 43.56,
      percentage: "64%",
      color: "#10b981" // 绿色
    }
  ]
};

// 家庭用电数据
export const homeData = {
  totalPower: "8.21 kWh",
  chartData: {
    xAxis: timePoints,
    yAxis: [1.0, 0.2, 0.5, 1.2, 1.5, 2.3, 2.8, 3.2, 2.6, 2.2, 2.8, 2.9, 3.0]
  },
  sourceData: [
    { name: "From Battery", value: 12.33, percentage: "18%", color: "#3498db" },
    { name: "From Grid", value: 12.33, percentage: "18%", color: "#9ca3af" },
    { name: "From Solar", value: 43.84, percentage: "64%", color: "#fcc419" }
  ]
};

// 电池数据
export const batteryData = {
  totalPower: "8.21 kWh",
  chartData: {
    xAxis: timePoints,
    yAxis: [1.0, 0.3, 0.7, 1.1, 1.6, 2.4, 3.0, 3.5, 2.8, 2.3, 2.7, 2.9, 3.0]
  },
  chargingData: [
    { name: "From Home", value: 12.33, percentage: "18%", color: "#20c997" },
    { name: "From Grid", value: 12.33, percentage: "18%", color: "#4dabf7" }
  ],
  socData: {
    xAxis: timePoints,
    yAxis: [1.0, 1.2, 0.1, 0.5, 0.7, 1.2, 1.3, 2.5, 3.0, 2.7, 2.0, 1.8, 2.5]
  }
};

// 电网数据
export const gridData = {
  totalPower: "8.21 kWh",
  chartData: {
    xAxis: [
      "02:00",
      "04:00",
      "06:00",
      "08:00",
      "10:00",
      "12:00",
      "14:00",
      "16:00",
      "18:00",
      "20:00",
      "22:00",
      "24:00"
    ],
    // 电网消耗曲线：匹配UI图的数据曲线
    yAxis: [1.0, 1.3, 0.1, 0.5, 1.2, 1.3, 3.0, 3.2, 3.6, 2.5, 2.0, 3.0]
  },
  // 电网输出数据（向电网卖电和向家庭供电）
  exportData: [
    { name: "To Home", value: 12.33, percentage: "18%", color: "#FF8C42" }, // 橙色
    { name: "To Grid", value: 12.33, percentage: "18%", color: "#1E88E5" } // 蓝色
  ],
  // 电网输入数据（从电网买电向家庭供电）
  importData: [
    { name: "From Grid", value: 32.4, percentage: "84%", color: "#1E90FF" }, // 蓝色
    { name: "To Home", value: 6.1, percentage: "16%", color: "#ffbb33" } // 橙色
  ]
};

// 日期选择器数据
export const dateOptions = {
  currentDate: new Date(),
  latestUpdate: "Updated 3 minutes ago"
};

